<template>
	<view class="container">
		<view class="order-type">
			<!-- 退款中 -->
			<view class="tips">
				<view class="tips1">你已经发起了退款申请，请耐心等待商家处理</view>
				<view class="tips2">还剩1天23小时58分</view>
			</view>
			
			<!-- 退款失败 -->
			<!-- <view class="tips" style="background-color: #EFF2F4;">
				<view class="tips1">退款失败</view>
				<view class="tips2">2019-06-16    13:06</view>
			</view> -->
			
			<!-- 退款成功 -->
			<!-- <view class="tips">
				<view class="tips1">退款成功</view>
				<view class="tips2">2019-06-16    13:06</view>
			</view> -->
			<view class="explain">
				<view>• 商家同意或者超时未处理，系统将退款给你</view>
				<view>• 如果商家拒绝退款，你可以修改退款申请，再次发起</view>
			</view>
			<view class="btn-box">
				<view class="edit-refund">修改申请</view>
				<view class="revoke-refund">撤销申请</view>
			</view>
		</view>
		<view class="top">
			<image class="order-img" src="/static/temp/icon_game.png" mode=""></image>
			<view class="order-name">
				云南甜玉米 水果玉米  云南甜玉米 水果玉米云南甜玉米 水果玉米  云南甜玉米 水果玉米云南甜玉米 水果玉米  云南甜玉米 水果玉米云南甜玉米 水果玉米  云南甜玉米 水果玉米
			</view>
			<view class="order-money">
				<view class="money"><text>￥</text>18</view>
				<view class="num">x1</view>
			</view>
		</view>
		<view class="form">
			<view class="form-item">
				<view class="form-item-name">退款原因</view>
				<view class="form-item-value">
					XXXXXXXXXXX
				</view>
			</view>
			<view class="form-item">
				<view class="form-item-name">退款金额</view>
				<view class="form-item-value">
					XXXXXXXXXXX
				</view>
			</view>
			<view class="form-item">
				<view class="form-item-name">退款说明</view>
				<view class="form-item-value">
					XXXXXXXXXXX
				</view>
			</view>
			<view class="form-item">
				<view class="form-item-name">申请时间</view>
				<view class="form-item-value">
					XXXXXXXXXXX
				</view>
			</view>
			<view class="form-item">
				<view class="form-item-name">退款编号</view>
				<view class="form-item-value">
					XXXXXXXXXXX
				</view>
			</view>
		</view>
		
		<!-- 退款失败 -->
		<!-- <view class="submit">重新申请</view> -->
	</view>
</template>

<script>

	export default {
		data () {
			return {
				
			}
		},
		methods: {
			
			submit() {
				uni.navigateTo({
					url: "refund"
				})
			}
		}
	}
	
</script>

<style lang="scss">
	
	.order-type {
		box-shadow: 0upx 1upx 0px 0px rgba(239,242,244,1);
		
		.tips {
			height: 180upx;
			background-color: #FFBC21;
			padding: 30upx 50upx;
			margin-bottom: 16upx;
			
			.tips1 {
				font-size: 28upx;
				line-height: 50upx;
			}
			
			.tips2 {
				font-size: 36upx;
				line-height: 80upx;
			}
		}
		
		.explain {
			font-size: 24upx;
			color: #ABADAD;
			line-height: 44upx;
			padding: 10upx 50upx;
		}
		
		.btn-box {
			text-align: right;
			padding: 20upx 30upx;
			
			view {
				width: 180upx;
				height: 68upx;
				text-align: center;
				line-height: 68upx;
				display: inline-block;
				font-size: 28upx;
				margin-left: 20upx;
				border-radius: 34upx;
			}
			
			.edit-refund {
				border: 1upx solid #232323;
				box-sizing: border-box;
			}
			
			.revoke-refund {
				background-color: #FFBC21;
			}
			
		}
		
	}
	
	.top {
		display: flex;
		padding: 20upx 50upx;
		margin-top: 30upx;
		
		.order-img {
			width: 190upx;
			height: 190upx;
			border-radius: 10upx;
			background-color: #e5e5e5;
		}
		
		.order-name {
			flex: 1;
			height: 100upx;
			font-size: 28upx;
			line-height: 50upx;
			margin: 0 60upx 0 34upx;
			display: -webkit-box;
		    overflow : hidden;
		    -webkit-line-clamp: 2;
		    -webkit-box-orient: vertical;
		}
		
		.order-money {
			text-align: right;
			
			.money {
				font-size: 36upx;
				
				text {
					font-size: 24upx;
				}
			}
			
			.num {
				font-size: 28upx;
				color: #ABADAD;
			}
		}
	}
	
	.form {
		padding-top: 30upx;
		background-color: #fff;
		
		.form-item {
			line-height: 100upx;
			display: flex;
			padding: 0 50upx;
			box-shadow: 0upx 1upx 0px 0px rgba(239,242,244,1);
			font-size: 28upx;
			
			.form-item-name {
				width: 200upx;
			}
			
			.form-item-value {
				flex: 1;
				display: flex;
				align-items: center;
				color: #767777;
				
				.radio {
					margin-right: 40upx;
				}
				
				input {
					width: 100%;
				}
			}
		}
	}
	
	.submit {
		margin: 50upx;
		height: 90upx;
		text-align: center;
		line-height: 90upx;
		border-radius: 45upx;
		background-color: #FFBC21;
		font-size: 32upx;
	}
	
</style>
